﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MakeMap
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            radioButton1.Checked = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Xml.Instance.SaveMap();
            MessageBox.Show("成功！");
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            //小地图
            if (radioButton1.Checked)
            {
                Xml.Instance.mapSize = 1;
            }
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            //中地图
            if (radioButton2.Checked)
            {
                Xml.Instance.mapSize = 2;
            }
        }

        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
            //大地图
            if (radioButton3.Checked)
            {
                Xml.Instance.mapSize = 3;
            }
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {

        }
    }
}
